<?php

namespace Cframe;
class Yf {
    /**
     *  框架执行入口
     */
    public static function register(){
        $auto = new AutoCreate();
        static::load();
        Hook::load();
        //
        if (ROUTE_USE){
            static::route();
        }
    }

    private static function route(){
        $route = new Route();
    }

    private static function load(){
        include YF_PATH . "helper.php";
        include CON_PATH . "helper.php";
    }

}